<h1>Editing membership</h1>

<%= error_messages_for :membership %>

<% form_for([@group,@membership]) do |f| %>

  <p>
    <b>Group:</b>
    <%=h @group.name %>
  </p>

  <p>
    <b>User:</b>
    <%=h @membership.user.name %>
  </p>

  <p>
    <b>Role</b><br />
    <%= f.collection_select :role_id, Role.find(:all), :id, :rolename, :prompt=>"select a role" %>
  </p>
  
  <p>
    <%= f.submit "Update" %>
  </p>
  
<% end %>

<%= link_to 'Back', @group %>
